package com.xzx.annotation.bean;

import org.springframework.beans.factory.FactoryBean;

/**
 * @author xinzhixuan
 * @version V1.0
 * @date 2018/7/14 21:11
 */
public class ColorFactoryBean implements FactoryBean<Color> {
    @Override
    public Color getObject() throws Exception {
        System.out.println("color 对象被创建");
        return new Color();
    }

    @Override
    public Class<?> getObjectType() {
        return Color.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
